home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
utils
/
spr_cut
/
cutter.doc
< prev
next >
Wrap
Text File
|
1995-03-12
|
5KB
|
120 lines
┌──────────────────────────────────────────────────┐
│ Sprite Cutter Utility v2.0 │██
│ by │██
│ gaggi@cs.unibo.it │██
└──────────────────────────────────────────────────┘██
████████████████████████████████████████████████████
Hello,
I am proud to show all the boys out there my first serious work.
It's written half in C and half in Assembly, I hope that it will be
useful to all the people who are interested in game programming as I am.
I have downloaded several sprite editors and sprite cutters from various ftp
sites, but I could not never find what I was looking for: a powerful graphic
editor with animation capabilities so I decided to write something myself.
The utility I have written cuts from a PCX image file created by a graphic
package, such as Deluxe Paint, sprite bitmaps and it also gives the
possibility to play simple animation in order to see if the sprites are enough
cool.
HOW TO USE THIS SPRITE CUTTER
----------------------------
NOTE: A mouse is needed to run the program!
Starting up the program attempts to load the PCX file given on command line,
then it enters the cut mode. If no file name is given on command line the
program enters the cut mode but you can't cut anything without loading a
picture.
To cut a sprite you must press the left button of the mouse.
All cuts are saved in a file .LST which contains the source picture name and
all the positions and the sizes of the cuts. Here follows .LST format:
BYTES
0 - 24 source picture name
25 - 30 1st cut datas
31 - 36 2nd cut datas
... and so on.
Here is the format of cut data:
BYTES
0 - 1 Cut x coordinate
2 - 3 Cut y coordinate
4 Cut x size
5 Cut y size
The bitmaps of sprites are saved in a file .SPR. Its format is the following:
BYTES
0 1st Bitmap x size
1 1st Bitmap y size
2 ... (x size)*(y size) bytes of bitmap datas
... 2nd Bitmap x size
2nd Bitmap y size
(x size)*(y size) bytes of bitmap datas
... and so on.
MENUS
The program has a main menu activated by the right button of mouse.
Here is the menu and a few explanations:
┌────────────────┐
│ Main │
│┌──────────────┐│
││ Source ││ <- Choice this voice if you want to load a PCX file
││ Sprite ... ││ <- Sprite subMenu
││ Size ... ││ <- Sprite size subMenu, use it to change cut sizes
││ Quit ││ <- Quits
│└──────────────┘│
└────────────────┘
The Sprite subMenu
┌────────────────┐
│ Sprite │
│┌──────────────┐│
││ Load LST ││ <- Load new cut datas
││ Save LST ││ <- Save current cut
││ Animate ││ <- Perform little animations
││ Save SPR ││ <- Save sprite bitmaps
│└──────────────┘│
└────────────────┘
The animation procedure is very simple. First of all you have to choose
animation frames, to select a frame just click on it with the left button
of the mouse. You can select a maximum of 10 frames. Then you'll be asked
to type the animation sequence and the animation will start!
INPUT BOXES
Sometimes you'll be asked to enter datas (such as file name and so on).
All the input is done by these windows, they are very simple to use.
If you want to cancel the input procedure just press ESC.
MESSAGE BOXES
They are used to display messages and to confirm operations.
To cancel message box just press any of the mouse buttons or press a key.
If a yes/no answer is required you have to press 'y' or 'n' keys to cancel
the message box.
And this is all! Feel free to send me any comment via e-mail or snail-mail.
If you want I will provide you more information about the implementation
and if you required it I will give you full source code, but please don't use
it for commercial purposes without my permission!
One more thing: the program IS NOT bug-free, please report me any kind of
malfunctioning.
--------------------------------------------------
Nicola Gaggi
University of Bologna
e-mail: gaggi@cs.unibo.it
WWW page: http://www.cs.unibo.it/~gaggi
snail-mail: Nicola Gaggi
Via Gramsci 23
40050 Quarto Inferiore
BOLOGNA - ITALY
--------------------------------------------------